package com.jifujun.fastdfs_springboot.service;


import com.jifujun.fastdfs_springboot.model.FastDFS;

import java.util.List;

/**
 * Create with IntelliJ IDEA
 * Project Name: fast_dfs
 * Package Name: com.jifujun.fast_dfs.service
 * Date: 2018/3/2713:38
 * User: 快乐的小菌菌
 * Description:
 */
public interface FastDFSService {
    String upload(String path);

    String upload(byte[] bytes, String extName, String fileName);

    List<FastDFS> queryList(Integer pageNo, Integer pageSize);

    FastDFS getById(Integer id);

    void deleteById(Integer id);

    void download(Integer id, String localPath);

    String uploadRemoteLink(String remoteLink);

    Integer deleteByPath(String path);
}
